package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author mengyb
 * @since 2019/04/12
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWBF_T")
public class GwbfT extends PO<GwbfT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWBFENT",type = IdType.INPUT)
    private String GWBFENT;
    private String GWBF001;
    private String GWBF002;
    private String GWBF003;
    private String GWBF004;
    private String GWBF005;
    private String GWBFACTI;
    @TableField(fill = FieldFill.INSERT)
    private String GWBFUSER;
    @TableField(fill = FieldFill.INSERT)
    private String GWBFGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String GWBFMODU;
    @TableField(fill = FieldFill.INSERT)
    private String GWBFTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWBFDATE;
    @TableField(fill = FieldFill.INSERT)
    private String GWBFORIG;
    @TableField(fill = FieldFill.INSERT)
    private String GWBFORIU;

    @Override
    protected Serializable pkVal() {
        return this.GWBFENT;
    }

}
